package com.zchlwj;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class ClientMain {

    public static void main(String[] args) throws Exception {
        HelloService helloService = (HelloService) Naming.lookup("rmi://119.29.139.75:8501/helloService");
        System.out.println("RMI 服务器远程调用的结果是：" + helloService.sayHello("zhouhui"));
    }
}
